from fastapi import APIRouter,Request

from common.ResponseModel import ResponseModel

user = APIRouter()


@user.post("/login")
async def login(request:Request):
    return ResponseModel.success( {
        "url":request.url,
        "clientIp":request.client.host,
        "headers":request.headers
    }
)